<?php
/**
 * api相关路由
 * User: raisound
 * Date: 2022/10/13
 */
use think\facade\Route;
Route::miss(function() {
    return returnResult(config("config.code.resources_error"),config("config.describe.resources_error"),[],400);
});

/***************************账户相关 */
Route::rule("auth/login","login/signIn"); // 登录
Route::get("test","login/index"); // 登录
Route::post("getToken","login/getToken"); // 登录获取token
Route::post("logout","login/logout"); // 退出登录

/***************************账号信息相关 */
Route::get("user/list","UserInfo/list"); // 获取账号信息
Route::post("user/add","UserInfo/add"); // 添加用户信息
Route::get("user/see","UserInfo/see"); // 用户信息查看
Route::post("user/modify","UserInfo/modify"); // 用户信息修改
Route::post("user/delete","UserInfo/delete"); // 删除用户信息
Route::rule("user/heartbeat","UserInfo/heartbeat"); // 更新token时间
Route::rule("user/tokenInfo","UserInfo/tokenInfo"); // 获取信息

/***************************系统配置 */
Route::rule("system/version","System/index"); // 获取系统相关信息
Route::rule("system/me","System/me"); // 获取系统相关信息
Route::rule("system/menus","System/menus"); // 获取系统相关信息
Route::rule("system/departments","System/departments"); // 获取系统相关信息
Route::rule("system/user","System/user"); // 获取系统相关信息
Route::rule("system/hospital_area","System/hospital_area"); // 获取系统相关信息


// 对外服务相关
Route::rule("service/train","Service/train");
Route::rule("service/trainStatus","Service/trainStatus");
